//@flow

/**
 * 
 */

import React, { Component } from 'react';
import { 
    View,
    Text,
    TouchableHighlight,
 } from 'react-native';
import { 
    List,
 } from "antd-mobile-rn";
import { Props as SettingProps } from "./settingList";

type Props = SettingProps;
export class SettingItem extends Component <Props,{}>{
    render(){
        const{
            title,
            icon,
            key,
            arrow,
            extra,
        } = this.props
        return (
            <List.Item arrow={arrow?'horizontal':null} 
                       extra={extra}>
                {this.props.title}
            </List.Item>
        )
    }
}